<?php

namespace App\Policies;

use App\Models\Role;
use Illuminate\Auth\Access\HandlesAuthorization;

class BasePolicy
{
    use HandlesAuthorization;

    public function before()
    {
        return auth()->user()->hasRole(Role::SUPER_ADMIN);
    }
}
